//
//  MineViewCell.m
//  ZYShang
//
//  Created by wangguangming on 15/8/3.
//  Copyright © 2015年 Amber. All rights reserved.
//

#import "MineViewCell.h"
#define WIDTH self.frame.size.width
@implementation MineViewCell
- (id)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self)
        {
        
        [self addall];
        }
    return self;
}
-(void)addall

{
    self.nameLaber=[[UILabel alloc] initWithFrame:CGRectMake(10, 2, WIDTH/4, 40)];
    self.textfield=[[UITextField alloc] initWithFrame:CGRectMake(CGRectGetMaxX(self.nameLaber.frame)+5, 2, WIDTH*3/4-20, 40)];
    self.textfield.layer.borderColor=[[UIColor grayColor] CGColor];
    self.textfield.layer.borderWidth=1.0;
    self.textLabel.enabled=NO;
    [self addSubview:self.nameLaber];
    [self addSubview:self.textfield];
}
/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
